nhooyr.io/websocket.trimLastFourBytesWriter.tail (field)
20 uses
nhooyr.io/websocket (current package)
compress.go#L85: tail []byte
compress.go#L89: if tw != nil && tw.tail != nil {
compress.go#L90: tw.tail = tw.tail[:0]
compress.go#L95: if tw.tail == nil {
compress.go#L96: tw.tail = make([]byte, 0, 4)
compress.go#L99: extra := len(tw.tail) + len(p) - 4
compress.go#L102: tw.tail = append(tw.tail, p...)
compress.go#L107: if extra > len(tw.tail) {
compress.go#L108: extra = len(tw.tail)
compress.go#L111: _, err := tw.w.Write(tw.tail[:extra])
compress.go#L117: n := copy(tw.tail, tw.tail[extra:])
compress.go#L118: tw.tail = tw.tail[:n]
compress.go#L124: tw.tail = append(tw.tail, p...)
compress.go#L129: tw.tail = append(tw.tail, p[len(p)-4:]...)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |